/**
 * Created By 李柏霖
 * 2024/1/13 22:25
 */

package springtransactionaldemo.demo.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import springtransactionaldemo.demo.mapper.UserMapper;
import springtransactionaldemo.demo.pojo.User;
import springtransactionaldemo.demo.service.IUserService;

import java.util.List;

@Service
public class IUserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    @Transactional
    public List<User> selectAllUsers() {
        return userMapper.selectAll();
    }
}
